package com.gxa.ssm251.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Date;
import java.util.List;

/**
 * @author 舒空
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("优惠券表")
public class Coupon implements Serializable {

  @ApiModelProperty(name = "id",value = "优惠券id")
  private Integer id;
  @ApiModelProperty(name = "name",value = "优惠券名称")
  private String name;
  @ApiModelProperty(name = "issuing",value = "优惠券发布方式")
  private String issuing;
  @ApiModelProperty(name = "itRvl",value = "优惠券领取方式")
  private String itRvl;
  @JsonFormat(pattern = "YYYY-MM-dd")
  @ApiModelProperty(name = "startTime",value = "优惠券开始时间")
  private Date startTime;
  @ApiModelProperty(name = "endTime",value = "优惠券结束时间")
  @JsonFormat(pattern = "YYYY-MM-dd")
  private Date endTime;
  @ApiModelProperty(name = "number",value = "优惠券数量")
  private Integer number;
  @ApiModelProperty(name = "price",value = "优惠券价格")
  private Double price;
  @ApiModelProperty(name = "superposition",value = "优惠券是否重复使用")
  private Boolean superposition;
  @ApiModelProperty(name = "inUse",value = "优惠券是否可用")
  private Boolean inUse;
  @ApiModelProperty(name = "scopeList",value = "使用范围")
  private List<CpScope> scopeList;
  @ApiModelProperty(name = "num",value = "领取数量")
  private Integer num;
  private List<String> stringList;
  private List<Integer> cpsIdList;

}
